package com.zpark.mapper;

import com.zpark.pojo.Books;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @PackageName: com.zpark.mapper
 * @ClassName: IBooksMapper
 * @Description:
 * @author: RZS
 * @date: 2023/5/4  8:56
 */
@Repository
public interface IBooksMapper {
    // 添加book
    Integer insertBook(Books books);

    // 根据id删除books
    Integer deleteBooksById(Integer id);

    // 更新books
    Integer updateBooks(Books books);

    // 根据id查询books
    Books selectBooksById(Integer id);

    // 查询所有book
    List<Books> selectAll();

    // 根据bookName查询book
    Books selectBookByName(String name);
}
